package com.bw.mallshop.mvvm.model;

import com.bw.common.entity.BaseEntity;
import com.bw.common.mvvm.model.BaseModel;
import com.bw.common.network.HttpType;
import com.bw.common.network.RetrofitFactory;
import com.bw.mallshop.entity.TokenEntity;
import com.bw.mallshop.repository.ApiService;
import java.util.Map;
import io.reactivex.Observable;

public class SplashModel extends BaseModel {

     public Observable<BaseEntity>requestToken(Map<String,Object>parames){
         Observable<TokenEntity> observable = RetrofitFactory.factory(HttpType.SIGN)
                 .createRetrofit().create(ApiService.class).requestToken(createBody(parames));
         return changeObservable(observable);
     }

}
